
<include file="Public/header"/><body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
      <li <if condition=" !isset($_GET['status']) || $_GET['status']==1 && empty($itemtype) ">class="current"</if>><a href="{:U('October/index', array('cateid'=>$cateid))}">通过列表</a></li>
      <li <if condition=" isset($_GET['status']) && $_GET['status']==0 ">class="current"</if>><a href="{:U('October/index', array('cateid'=>$cateid ,'search'=>1 ,'status'=>0))}">待审核</a></li>
        <li <if condition=" $_GET['status']==2 ">class="current"</if>><a href="{:U('October/index', array('cateid'=>$cateid ,'search'=>1 ,'status'=>2))}">未通过审核</a></li>
    </ul>
  </div>
  <div class="h_a">搜索</div>
  <form method="get" action="{:U('index')}">
  <input type="hidden" value="1" name="search">
      <input type="hidden" name="status" value="{$statuss}"/>
      <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">

        <select class="select_2" name="searchtype" style="width:70px;">
          <option value='1' <if condition=" $searchtype == '1' "> selected</if>>标题</option>
          <option value='2' <if condition=" $searchtype == '2' "> selected</if>>昵称</option>
          
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
		<input type="submit" value="搜 索" style="padding: 4px 10px; ">
        
        </span>
      </div>
    </div>
  </form>
  <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
      <table width="100%">
        <colgroup>
        <col width="16">
        <col width="60">
        <col width="80">
        <col width="100">
       
        <col width="">
        <col width="150">
        <col width="150">
        <col width="100">
        </colgroup>
        <thead>
        <tr>
            <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
            <td><a href="{:U('allworks',array('status'=>$statuss,'order'=>'sort'))}">排序</a></td>
            <td><a href="{:U('allworks',array('status'=>$statuss,'order'=>'workid'))}">ID</a></td>
            <td>审核</td>
       
            <td>标题</td>
            <td>发布人</td>
            <td><a href="{:U('allworks',array('status'=>$statuss,'order'=>'create_time'))}">时间</a></td>
            <td>操作</td>
        </tr>
        </thead>
        <volist name="data" id="vo">
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.workid}"></td>
            <td><input name='sort[{$vo.workid}]' class="input mr5"  type='text' size='3' value='{$vo.sort}'></td>
            <td>{$vo.workid}</td>
            <td>{$vo.status|showPass}</td>
           
            <td><a href="/{$vo.type|getWorkUrl}/{$vo.workid}" target="_blank">{$vo.title|str_cut=20}</a></td>
              <td>{$vo.userid|getNickName}</td>
              <td>{$vo.create_time|date="Y-m-d",###}</td>
              <td><a href="javascript:void(0)" onClick="javascript:openwinx('{:U("Works/edit",array("workid"=>$vo[workid]))}','')">修改</a> |
                  <a class="J_ajax_del" data-msg="确定删除该产品吗?" href="{:U('Works/delete',array('workid'=>$vo['workid']))}">删除</a></td>
          </tr>
        </volist>
      </table>
      <div class="p10"><div class="pages"> {$Page} </div> </div>
     
    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Works/batch/',array('do'=>'checkpass'))}">审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Works/batch/',array('do'=>'cancelpass'))}">取消审核</button>
         <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Works/batch/',array('do'=>'nopass'))}">不通过审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Works/batch_delete')}">删除</button>
      </div>
    </div>
  </form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>